<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>商品管理</title>
   <script src="http://localhost/yhd/Static/Js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="http://localhost/yhd/Static/hdjs/hdjs.css"/>
    <script src="http://localhost/yhd/Static/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
        table .hd-btn{
            margin: 0;
        }
        table tr a:hover{
            text-decoration: none;
        }
         .title{background:#6FB100;height:30px;color:#fff;line-height:30px;font-weight:bold;padding-left:10px;font-size:14px;}
         .title .add{float:right;}
          .title .add a{color:#fff;line-height:23px;margin-right:18px;}
        .title a:hover{text-decoration: none;}    
    </style>
    <link rel="stylesheet" type="text/css" href="http://localhost/yhd/Static/bootstrap/css/bootstrap.min.css"/>
</head>
<body>
<div class="title"  >回收站
   <div class="add" > <a href="<?php echo U('Goods/add');?>" class="glyphicon glyphicon-plus">添加商品</a></div>

</div>
<div class="wrap">
     <table class="hd-table hd-table-list">
        <thead>
        <tr>
            <td width="50">id</td>
            <td>商品名称</td>
             <td width="100">缩略图</td>
            <td width="100">商品货号</td>
             <td>市场价</td>
             <td>本店价</td>
             <td>是否上架</td>
             <td>是否新品</td>
             <td>是否热销</td>
             <td>是否精品</td>
              <td>库存</td>
            <td width="180">上架时间</td>        
            <td width="150">操作</td>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($data as $k=>$v){?>
            <tr>
            <td width="50"><?php echo $v['goods_id'];?></td>
            <td width="100"><?php echo $v['goods_name'];?></td>
             <td width="100"><img src="http://localhost/yhd/<?php echo $v['goods_img'];?>" width="50" height="50" alt="" /></td>
             <td width="100"><?php echo $v['goods_sn'];?></td>
            <td ><?php echo $v['market_price'];?></td>
             <td ><?php echo $v['shop_price'];?></td>
             <td ><?php echo $v['is_onsale'];?></td>
              <td ><?php echo $v['is_new'];?></td>
               <td ><?php echo $v['is_hot'];?></td>
                <td ><?php echo $v['is_best'];?></td>
               <td width="100"><?php echo $v['goods_number'];?></td>
            <td width="180"><?php echo date('Y-m-d H:i:s',$v['add_time']);?></td>
           
             <td width="200">
                <a href="http://localhost/yhd/index.php/Admin/Goods/regain&goods_id=<?php echo $v['goods_id'];?>" class="hd-btn hd-btn-primary hd-btn-xm">恢复</a>
             <a href="http://localhost/yhd/index.php/Admin/Goods/real_del&goods_id=<?php echo $v['goods_id'];?>" class="hd-btn hd-btn-danger hd-btn-xm">删除</a>

            </td>
        </tr>
        <?php }?>
        </tbody>
    </table>
    <p style="text-align:right"> <a href="http://localhost/yhd/index.php/Admin/Goods/del_all" class="hd-btn hd-btn-danger hd-btn-xm">清空回收站</a></p>
    <div class="page_hdjob">
       <?php echo $page;?>
    </div>
</div>
 <script type="text/javascript">
//     function hd_modal_del(id) {
//         hd_modal({
//             width: 320,//宽度
//             height: 150,//高度
//             title: '您确实把此文件放入回收站吗？',//标题
//             content: '',//提示信息
//             button: true,//显示按钮
//             button_success: "确定",//确定按钮文字
//             button_cancel: "取消",//关闭按钮文字
//             timeout: 0,//自动关闭时间 0：不自动关闭
//             shade: true,//背景遮罩
//             shadeOpacity: 0.4,//背景透明度
//             success: function () {//点击确定后的事件
//                 location.href = 'http://localhost/yhd/index.php/Admin/Goods'+'&a=del&goods_id='+id;
//             },
//             cancel: function () {//点击关闭后的事件
                
//             }
//         });
//     }
// </script>
</body>
</html>


